package net.mingsoft.basic.util;

/**
 * @author gengfa
 * @date 22/01/14
 */
public class PlatformJudgeUtil {

    private static final String OS_NAME_KEY = "os.name";
    private static final String WINDOWS = "windows";
    private static final String SLASH_WIN = "\\";
    private static final String SLASH_UNIX = "/";

    private PlatformJudgeUtil() {}

    public static String reSlash(String path) {
        /*String osName = System.getProperty(OS_NAME_KEY).toLowerCase();

        if (osName.contains(WINDOWS)) {
            return path.replace(SLASH_UNIX, SLASH_WIN);
        }
        return path.replace(SLASH_WIN, SLASH_UNIX);*/

        return path.replace(SLASH_WIN, SLASH_UNIX);
    }
}
